#include<iostream>
using namespace std;

class Person
{
private:
  int password;
public:
  string name;
protected:
  string Car;
public:
  void intP() {
    name = 'xx';
    Car = 'benchi';
    password = 123456;
  }
};

struct Dog
{
private:
  int password;
public:
  string name;
protected:
  string Car;
public:
  void intP() {
    name = 'xx';
    Car = 'benchi';
    password = 123456;
  }
};

int main() {
  Person p1;
  p1.name = 'xx';
  // p1.Car = 'benchi'; // 报错
  // p1.password = 123; // 报错

  Dog dog1;
  dog1.name = '23';
  dog1.intP();
  return 0;
}